package com.example.leddemo;

import com.example.leddemo.slice.MainAbilitySlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;
import ohos.light.agent.LightAgent;
import ohos.light.bean.LightBrightness;
import ohos.light.bean.LightEffect;

public class MainAbility extends Ability {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(MainAbilitySlice.class.getName());

        LightAgent lightAgent = new LightAgent();
        LightEffect effect = new LightEffect(new LightBrightness(100 ,100, 100), 5, 5);
        lightAgent.getLightIdList();
    }
}
